package com.dzirtbry.miner.UI;

import com.dzirtbry.miner.settings.GameSettings;

import javax.swing.*;

import java.awt.*;
/**
 * User: dzirtbry
 * Date: 2/26/12
 * Time: 5:45 PM
 */
public class BaseFrame extends JFrame{
    
    private Field field;

    public BaseFrame() {
        super("Miner");
        init();
    }

    private void init() {
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        field = new Field();
        field.setGameSettings(new GameSettings());
        field.setPreferredSize(new Dimension(400, 400));

        this.add(field, BorderLayout.CENTER);

        this.setPreferredSize(new Dimension(500, 500));
        this.pack();
        this.setVisible(true);
    }

    public static void main(String[] args) {
        new BaseFrame();
    }

}
